package com.zw.a.basic.a07.demo07_teacher_exercise;

//子类, 就业班老师
public class WorkTeacher extends Teacher{
    //构造方法
    public WorkTeacher() {
    }

    public WorkTeacher(String name, int age) {
        super(name, age);
    }

    //重写Teacher#teach()
    @Override
    public void teach() {
        System.out.println("就业班老师讲: JavaEE, Linux, Hadoop...");
    }
}
